package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_INFO_BUSIDATA"
 *     
*/
public class CcpInfoBusidata implements Serializable {

    /** identifier field */
    private String cfbdGuid;

    /** nullable persistent field */
    private String cfbLabel;

    /** nullable persistent field */
    private String glCode;

    /** nullable persistent field */
    private BigDecimal busiData;

    /** nullable persistent field */
    private String busiYear;

    /** nullable persistent field */
    private String caoGuid;

    /** nullable persistent field */
    private String remark1;

    /** nullable persistent field */
    private String remark2;

    /** nullable persistent field */
    private String remark3;

    /** nullable persistent field */
    private String remark4;

    /** nullable persistent field */
    private String remark5;

    /** full constructor */
    public CcpInfoBusidata(String cfbdGuid, String cfbLabel, String glCode, BigDecimal busiData, String busiYear, String caoGuid, String remark1, String remark2, String remark3, String remark4, String remark5) {
        this.cfbdGuid = cfbdGuid;
        this.cfbLabel = cfbLabel;
        this.glCode = glCode;
        this.busiData = busiData;
        this.busiYear = busiYear;
        this.caoGuid = caoGuid;
        this.remark1 = remark1;
        this.remark2 = remark2;
        this.remark3 = remark3;
        this.remark4 = remark4;
        this.remark5 = remark5;
    }

    /** default constructor */
    public CcpInfoBusidata() {
    }

    /** minimal constructor */
    public CcpInfoBusidata(String cfbdGuid) {
        this.cfbdGuid = cfbdGuid;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="CFBD_GUID"
     *         
     */
    public String getCfbdGuid() {
        return this.cfbdGuid;
    }

    public void setCfbdGuid(String cfbdGuid) {
        this.cfbdGuid = cfbdGuid;
    }

    /** 
     *            @hibernate.property
     *             column="CFB_LABEL"
     *             length="20"
     *         
     */
    public String getCfbLabel() {
        return this.cfbLabel;
    }

    public void setCfbLabel(String cfbLabel) {
        this.cfbLabel = cfbLabel;
    }

    /** 
     *            @hibernate.property
     *             column="GL_CODE"
     *             length="15"
     *         
     */
    public String getGlCode() {
        return this.glCode;
    }

    public void setGlCode(String glCode) {
        this.glCode = glCode;
    }

    /** 
     *            @hibernate.property
     *             column="BUSI_DATA"
     *             length="16"
     *         
     */
    public BigDecimal getBusiData() {
        return this.busiData;
    }

    public void setBusiData(BigDecimal busiData) {
        this.busiData = busiData;
    }

    /** 
     *            @hibernate.property
     *             column="BUSI_YEAR"
     *             length="4"
     *         
     */
    public String getBusiYear() {
        return this.busiYear;
    }

    public void setBusiYear(String busiYear) {
        this.busiYear = busiYear;
    }

    /** 
     *            @hibernate.property
     *             column="CAO_GUID"
     *             length="32"
     *         
     */
    public String getCaoGuid() {
        return this.caoGuid;
    }

    public void setCaoGuid(String caoGuid) {
        this.caoGuid = caoGuid;
    }

    /** 
     *            @hibernate.property
     *             column="REMARK1"
     *             length="10"
     *         
     */
    public String getRemark1() {
        return this.remark1;
    }

    public void setRemark1(String remark1) {
        this.remark1 = remark1;
    }

    /** 
     *            @hibernate.property
     *             column="REMARK2"
     *             length="20"
     *         
     */
    public String getRemark2() {
        return this.remark2;
    }

    public void setRemark2(String remark2) {
        this.remark2 = remark2;
    }

    /** 
     *            @hibernate.property
     *             column="REMARK3"
     *             length="30"
     *         
     */
    public String getRemark3() {
        return this.remark3;
    }

    public void setRemark3(String remark3) {
        this.remark3 = remark3;
    }

    /** 
     *            @hibernate.property
     *             column="REMARK4"
     *             length="40"
     *         
     */
    public String getRemark4() {
        return this.remark4;
    }

    public void setRemark4(String remark4) {
        this.remark4 = remark4;
    }

    /** 
     *            @hibernate.property
     *             column="REMARK5"
     *             length="50"
     *         
     */
    public String getRemark5() {
        return this.remark5;
    }

    public void setRemark5(String remark5) {
        this.remark5 = remark5;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("cfbdGuid", getCfbdGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpInfoBusidata) ) return false;
        CcpInfoBusidata castOther = (CcpInfoBusidata) other;
        return new EqualsBuilder()
            .append(this.getCfbdGuid(), castOther.getCfbdGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getCfbdGuid())
            .toHashCode();
    }

}
